{"version":3,"sources":["script.js"],"names":["namespace","BX","Manager","managerList","Tile","options","this","id","name","bgColor","color","selected","node","data","nameNode","Helper","getNode","iconNode","iconColorNode","textContent","iconClass","addClass","changeSelection","prototype","classSelected","isSelected","changeClass","style","background","getComputedStyle","backgroundColor","onClick","params","init","events","tileClick","tileRemove","tileEdit","tileAdd","buttonAdd","getById","filtered","filter","item","length","getList","list","context","containerId","tileContainer","tileTemplate","getNodes","forEach","initNode","bind","tileOptionsList","push","initEventHandlers","onButtonAdd","getAttribute","tileOptions","toString","addTile","onRemove","tile","e","preventDefault","stopPropagation","removeTile","onTileClick","fire","removeTiles","util","deleteFromArray","indexOf","remove","getTile","getTiles","getTemplatedNode","contains","appendChild","eventName","onCustomEvent","getObjectByKey","key","value","hasOwnProperty","role","nodes","convert","nodeListToArray","querySelectorAll","className","isAdd","removeClass","changeDisplay","isShow","display","replace","text","isDataSafe","htmlspecialchars","RegExp","templateNode","replaceData","template","innerHTML","document","createElement","children"],"mappings":"CAAC,WAEA,IAAIA,EAAYC,GAAGD,UAAU,kBAC7B,GAAIA,EAAUE,QACd,CACC,OAGD,IAAIC,KAMJ,SAASC,EAAKC,GAEbC,KAAKC,GAAKF,EAAQE,GAClBD,KAAKE,KAAOH,EAAQG,KACpBF,KAAKG,QAAUJ,EAAQI,QACvBH,KAAKI,MAAQL,EAAQK,MACrBJ,KAAKK,SAAWN,EAAQM,SACxBL,KAAKM,KAAOP,EAAQO,KACpBN,KAAKO,KAAOR,EAAQQ,KAEpBP,KAAKQ,SAAWC,EAAOC,QAAQ,iBAAkBV,KAAKM,MACtDN,KAAKW,SAAWF,EAAOC,QAAQ,iBAAkBV,KAAKM,MACtDN,KAAKY,cAAgBH,EAAOC,QAAQ,uBAAwBV,KAAKM,MAEjE,GAAIN,KAAKE,KACT,CACCF,KAAKQ,SAASK,YAAcb,KAAKE,KAElC,GAAIH,EAAQe,UACZ,CACCnB,GAAGoB,SAASf,KAAKW,SAAUZ,EAAQe,WAGpCd,KA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